package Class.Constructor.This;

/**
 * Enjoy programming!!!
 * Time: 2021/11/8 -  19:56
 */
public class This01 {
    public static void main(String[] args){
        T t1 = new T();
        t1.f2();
    }
}
class T{
    String name = "jack";
    int age = 100;

    public T(){
        this("jack",100);
        System.out.println("T() 构造器");
    }

    public T(String name, int age){
        System.out.println("T(String name , int age ) 构造器 ");
    }
    public void f3(){

    }

    public void f2(){
        System.out.println("f2()");
        this.f1();
    }
    public void f1(){
        System.out.println("f1()");
    }
}
